﻿function AddFavorite(title, url) {
    try {
        window.external.addFavorite(url, title);
    }
    catch (e) {
        try {
            window.sidebar.addPanel(title, url, "");
        }
        catch (e) {
            alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}



function showDropMenu (obj,str) {
    
    var dropMenuId=document.getElementById(str);
    // alert(dropMenuId.className)

    if(dropMenuId.style.display== "none")
    dropMenuId.style.display= "block";
    else
        dropMenuId.style.display = "none";
}